public class Study5 {
	public static void main(String[] args) {
		/*探究逻辑运算符 || 与 | 的不同之处 */
		int num = 8;
		System.out.println((8>6) || (++num > 9));
		System.out.println("num ="+num);
		System.out.println((8>6) | (++num > 9));
		System.out.println("num ="+num);
	}




	public static void main1 (String[] args) {
		/*String[] args 运行时的命令行参数 */
		/*探究 逻辑运算符 & 与 && 的不同之处*/
		int num = 8;
		System.out.println((5>7) && (++num > 9));
		System.out.println("num ="+num);
		System.out.println((5>7) & (++num > 9));
		System.out.println("num ="+num);
	}
}